﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using MsTestUtilities.SolutionAnalysis;
using System;

namespace MsTestUtilitiesTests.SolutionAnalysisTests.CsProjectTests
{
    [TestClass]
    public class ProjectHeaderGroupParsingTests : ProjectParsingFixture
    {
        protected override string ProjectFile
        {
            get { return "MinimalProject.csproj"; }
        }

        [TestMethod]
        public void DefaultConfiguration()
        {
            Assert.AreEqual("Debug", Project.DefaultConfiguration);
        }

        [TestMethod]
        public void DefaultPlatform()
        {
            Assert.AreEqual("AnyCPU", Project.DefaultPlatform);
        }

        [TestMethod]
        public void RootNamespace()
        {
            Assert.AreEqual("RowTests", Project.RootNamespace);
        }

        [TestMethod]
        public void AssemblyName()
        {
            Assert.AreEqual("RowTests", Project.AssemblyName);
        }

        [TestMethod]
        public void TargetFrameworkVersion()
        {
            Assert.AreEqual(new Version(4, 5), Project.TargetFrameworkVersion);
        }

        [TestMethod]
        public void OutputTypeTest()
        {
            Assert.AreEqual(OutputType.Exe, Project.OutputType);
        }       
    }
}
